﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Chef Framework v0.1</title>
    <!-- Style -->
    <link href="../design/css/style.css" rel="stylesheet" type="text/css" />

    <script src="../design/js/jquery-1.4.3.js" type="text/javascript"></script>
    <script src="../design/js/chef/chef.core.js" type="text/javascript"></script>
</head>
<body>
    <h2>The Chef Framework</h2>
    <h4><ul><li>Routing</li></ul></h4>

   <!-- Action -->
   <p><a href="#/renderTemplate/Marie">Marie</a> | <a href="#/renderTemplate/Ben">Ben</a></p>

   <!-- Layout -->

   <!-- Handler -->
   <script type="text/javascript">
        
       $(document).ready(function () {
           /* Map Action to Handler */
           chef.mapRoute("#/renderTemplate/Ben", function (e) {
               console.log("sss");
               //renderTemplate("Marie");
           });

           chef.start(chef.traceLevel.Error);
           document.location = "#/";
       });
   </script>
</body>
</html>
